import axios from "../utils/requires";

//获取文章
export const getArtical = ((params) => {
    return axios({
        url: '/post',
        params
    })
})

//发布文章
export const addArtical = ((data) => {
    return axios({
        method: 'post',
        url: '/post',
        data
    })
})

//获取栏目
export const getCategory = (() => {
    return axios({
        url: '/category',
    })
})